package baltazar;

import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class ContentClients extends ContentArea {
 
    private JLabel testLabel = new JLabel("I'm Content Clients Class");
    
	private ImageIcon redIcon = new ImageIcon("./images/red.png");
    
    private JButton addNew = new JButton("Dodaj  ", redIcon);
    private JButton edit = new JButton("Edytuj  ", redIcon);
    private JButton delete = new JButton("Usuń  ", redIcon);
	
	
    public ContentClients() {
		super();
        setLabel(testLabel);
		createMenu();
    }
	
	
	private void createMenu() {
		for(int i=0; i<1; i++ ) {
		        sideMenu.add(new JLabel(" "));
            }
            
        addNew.setBackground(new Color(250, 250, 198));
        addNew.setHorizontalTextPosition(SwingConstants.LEFT);
		addNew.setHorizontalAlignment(SwingConstants.RIGHT);
		addNew.setBorderPainted(false);
        addNew.setFocusable(false);
        sideMenu.add(addNew);
            
		edit.setBackground(new Color(250, 250, 198));
		edit.setHorizontalTextPosition(SwingConstants.LEFT);
		edit.setHorizontalAlignment(SwingConstants.RIGHT);
		edit.setBorderPainted(false);
		edit.setFocusable(false);
        sideMenu.add(edit);
		  
		delete.setBackground(new Color(250, 250, 198));
		delete.setHorizontalTextPosition(SwingConstants.LEFT);
		delete.setHorizontalAlignment(SwingConstants.RIGHT);
		delete.setBorderPainted(false);
		delete.setFocusable(false);
		sideMenu.add(delete);          
    }
	
}
